package com.aspire.core.match.ua.object;

import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class Device {

	public int getDevice_id() {
		return device_id;
	}
	public void setDevice_id(int device_id) {
		this.device_id = device_id;
	}
	public String getDevice_name() {
		return device_name;
	}
	public void setDevice_name(String device_name) {
		this.device_name = device_name;
	}
	public String getDevice_desc() {
		return device_desc;
	}
	public void setDevice_desc(String device_desc) {
		this.device_desc = device_desc;
	}
	public String getDevice_first_alpha() {
		return device_first_alpha;
	}
	public void setDevice_first_alpha(String device_first_alpha) {
		this.device_first_alpha = device_first_alpha;
	}
	public int getBrand_id() {
		return brand_id;
	}
	public void setBrand_id(int brand_id) {
		this.brand_id = brand_id;
	}
	public String getEnglish_device_name() {
		return english_device_name;
	}
	public void setEnglish_device_name(String english_device_name) {
		this.english_device_name = english_device_name;
	}
	public String getEnglish_device_desc() {
		return english_device_desc;
	}
	public void setEnglish_device_desc(String english_device_desc) {
		this.english_device_desc = english_device_desc;
	}
	private int device_id;
	private String device_name;
	private String device_desc;
	private String device_first_alpha;
	private int brand_id;
	private String english_device_name;
	private String english_device_desc;
	private int os_id;
	public DeviceBrand getDeviceBrand() {
		return deviceBrand;
	}
	public void setDeviceBrand(DeviceBrand device_brand) {
		this.deviceBrand = device_brand;
	}
	private DeviceBrand deviceBrand;
	
	
	private boolean isTouchScreen = false;
	public boolean isTouchScreen() {
		return isTouchScreen;
	}
	public void setTouchScreen(boolean isTouchScreen) {
		this.isTouchScreen = isTouchScreen;
	}
	public String getScreensize() {
		return screensize;
	}
	public void setScreensize(String screensize) {
		this.screensize = screensize;
	}
	public String getPreviewPicwww() {
		return previewPicwww;
	}
	public void setPreviewPicwww(String previewPicwww) {
		this.previewPicwww = previewPicwww;
	}
	private String screensize;
	private String previewPicwww;
	
	
	
	
	private String device_ua;
	public String getDevice_ua() {
		return device_ua;
	}
	public void setDevice_ua(String device_ua) {
		this.device_ua = device_ua;
	}
	public String getDevice_os_ua() {
		return device_os_ua;
	}
	public void setDevice_os_ua(String device_os_ua) {
		this.device_os_ua = device_os_ua;
	}
	private String device_os_ua;
	
	
	
	public int getOs_id() {
		return os_id;
	}
	public void setOs_id(int os_id) {
		this.os_id = os_id;
	}
	public String getOs_detail() {
		return os_detail;
	}
	public void setOs_detail(String os_detail) {
		this.os_detail = os_detail;
	}
	private String os_detail;
	
	public DeviceOS getDeviceOS() {
		return deviceOS;
	}
	public void setDeviceOS(DeviceOS deviceOS) {
		this.deviceOS = deviceOS;
	}
	private DeviceOS deviceOS;
	
	public int getSeries_id() {
		return series_id;
	}
	
	public void setSeries_id(int series_id) {
		this.series_id = series_id;
	}
	private int series_id;
	
	private Series series;
	
	public Series getSeries() {
		return series;
	}
	public void setSeries(Series series) {
		this.series = series;
	}
	
	//适配到时的关键字逻辑
	public String[] debugMatchArray;
	
	public String[] getDebugMatchArray() {
		return debugMatchArray;
	}
	public void setDebugMatchArray(String[] debugMatchArray) {
		this.debugMatchArray = debugMatchArray;
	}
	
	public String toString()
	{
		return new ToStringBuilder(this, BeanContant.BeanLogStyle)
		.append("device_id", device_id)
        .append("device_name", device_name) 
        .append("device_desc", device_desc) 
        .append("device_first_alpha", device_first_alpha)
        .append("brand_id", brand_id) 
        .append("brand", this.deviceBrand) 
        .append("english_device_name", english_device_name) 
        .append("english_device_desc", english_device_desc)
        .append("os_id", os_id)
        .append("os", this.deviceOS) 
        .append("os_detail", os_detail)
        .append("series_id", series_id)
        .append("series", this.series)
        .append("isTouchScreen", this.isTouchScreen)
        .append("screensize", this.screensize)
        .append("previewPicwww", this.previewPicwww)
        .append("device_ua", this.device_ua)
        .append("device_os_ua", this.device_os_ua)
        .append("debugMatchArray", ArrayUtils.toString(this.debugMatchArray))
        .toString(); 
	}
}
